<template>
	<view>
		<uni-navbar :title="'应用'"></uni-navbar>
		
		<!-- 课程管理 -->
		<view class="kecheng">
			<view class="k-title">
				课程管理
			</view>
			<view class="block">
				<view class="b-1" v-for="(item,index) in kecheng" :key="index"
					@click="toPage(item.url,item.title)">
					<image :src="item.img" mode=""></image>
					<view>{{item.title}}</view>
				</view>
			</view>
		</view>
		<view class="kecheng">
			<view class="k-title">
				我的团队
			</view>
			<view class="block">
				<view class="b-1" v-for="(item,index) in tuandui" :key="index" @click="tuand(item.url,item.title)">
					<image :src="item.img" mode=""></image>
					<view>{{item.title}}</view>
				</view>
			</view>
		</view>
		
		<tarbar></tarbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				kecheng: [
					{
						title: '选课列表',
						img: '../../static/application/xuanke.png',
						url: '/pages/applications/course_selection/course_selection'
					},
					{
						title: '期次查询',
						img: '../../static/application/qici.png',
						url: '/pages/applications/period_query/period_query'
					},
					{
						title: '订单列表',
						img: '../../static/application/dingdan.png',
						url: '/pages/applications/order_list/order_list'
					},
					{
						title: '换课列表',
						img: '../../static/application/huanke.png',
						url: '/pages/applications/course_change_list/course_change_list'
					},
					{
						title: '退课列表',
						img: '../../static/application/tuike.png',
						url: '/pages/applications/course_change_list/course_change_list'
					},
					{
						title: '客户查询',
						img: '../../static/application/kehu.png',
						url: '/pages/applications/customer_inquiry/customer_inquiry'
					},
					{
						title: '我的业绩',
						img: '../../static/application/wode.png',
						url: '/pages/applications/my_performance/my_performance'
					},
					{
						title: '报道列表',
						img: '../../static/application/baodao.png',
						url: '/pages/applications/report_list/report_list'
					},
				],
				tuandui:[
					{
						title: '团队成员',
						img: '../../static/application/t-chengyuan.png',
            url:'/pages/applications/members/members'
					},
					{
						title: '团队业绩',
						img: '../../static/application/t-yeji.png',
						url: '/pages/applications/my_performance/my_performance'
					},
					{
						title: '团队客户',
						img: '../../static/application/t-kehu.png',
            url:'/pages/applications/mim-Customer/mim-Customer'
					},
				]
			}
		},
		methods: {
			toPage(url,title){
				uni.navigateTo({
					url: url + '?title=' + title
				})
			},
      tuand(url,title){
        uni.navigateTo({
          url:url+'?title='+title
        })
      }
		}
	}
</script>

<style lang="scss" scoped>
	
	.kecheng{
		width: 750rpx;
		padding: 30rpx;
		background-color: #fff;
		.k-title{
			width: 100%;
			font-size: 30rpx;
			font-family: Source Han Sans SC;
			font-weight: bold;
			color: #4D4D4D;
			line-height: 90rpx;
			border-bottom: 1rpx solid #e8e8e8;
		}
		
		.block{
			display: flex;
			justify-content: flex-start;
			flex-wrap: wrap;
			padding: 0 30rpx;
			.b-1{
				padding: 30rpx 60rpx 0 0;
				image{
					width: 95rpx;
					height: 95rpx;
				}
				view{
					font-size: 22rpx;
					font-family: Source Han Sans SC;
					font-weight: 400;
					color: #4D4D4D;
					line-height: 40rpx;
				}
			}
		}
	}
</style>
